import request from '@/app/utils/request'

export async function getBusinessCatalogue() {
    return await request({
        url: '/front/getBusinessCatalogue',
        method: 'get',
    })
}

export async function getIndexData() {
    return await request({
        url: '/front/indexData',
        method: 'get',
    })
}
export async function getNewsList(pageNum: number, pageSize: number, type: string) {
    return await request({
        url: `/front/getNewsList/${pageNum}/${pageSize}/${type}`,
        method: 'get',
    })
}

export function getNewsById(id:string) {
    return request({
        url: `/front/getNewsById/${id}`,
        method: 'get',
    })
}

export function getBusiness() {
    return request({
        url: '/front/getBusiness',
        method: 'get',
    })
}

export function getBusinessContent(id:string) {
    return request({
        url: `/front/getBusinessContent/${id}`,
        method: 'get',
    })
}

export function getOfflineStore(pageNum:number,pageSize:number,type:string) {
    return request({
        url: `/front/getOfflineStore/${pageNum}/${pageSize}/${type}`,
        method: 'get',
    })
}